﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BoxScore.juego
{
    public partial class Resultado : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LinkButton1_Command(object sender, CommandEventArgs e)
        {
            string idjuego = (string) e.CommandArgument;
            Response.Redirect("~/Estadisticas/XJuego.aspx?juego=" + idjuego);
        }

        protected void LinkButton2_Command(object sender, CommandEventArgs e)
        {
            string idJuego = (string)e.CommandArgument;
            LinkButton link = sender as LinkButton;
            GridViewRow fila = (GridViewRow) link.NamingContainer;
            string rv, hv, ev, rhc, hhc, ehc, idv, idhc;
            rv = ((TextBox)fila.FindControl("TextBox1")).Text;
            hv = ((TextBox)fila.FindControl("TextBox2")).Text;
            ev = ((TextBox)fila.FindControl("TextBox3")).Text;
            rhc = ((TextBox)fila.FindControl("TextBox4")).Text;
            hhc = ((TextBox)fila.FindControl("TextBox5")).Text;
            ehc = ((TextBox)fila.FindControl("TextBox6")).Text;
            idv = ((HiddenField)fila.FindControl("HiddenField1")).Value;
            idhc = ((HiddenField)fila.FindControl("HiddenField2")).Value;

            //guardo

            //
            Response.Redirect(Request.Path);

        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {

        }
    }
}
